package com.ruoyi.net.domain;

import io.swagger.annotations.ApiModelProperty;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 业务-L2 VPN配置-节点列表对象 busi_l2_vpn_node
 * 
 * @author net
 * @date 2024-12-14
 */
public class BusiL2VpnNode extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    private String id;

    /** L2 VPN业务主键 */
    @Excel(name = "L2 VPN业务主键")
    @ApiModelProperty(value = "L2 VPN业务主键")
    private String l2VpnId;

    /** 网元id */
    @Excel(name = "网元id")
    @ApiModelProperty(value = "网元id")
    private String elementId;

    /** 节点角色（源网元 宿网元） */
    @Excel(name = "节点角色", readConverterExp = "源=网元,宿=网元")
    @ApiModelProperty(value = "节点角色")
    private String nodeRole;

    /** 封装方式（主接口、VLAN子接口、Dot1q终结子接口） */
    @Excel(name = "封装方式", readConverterExp = "主=接口、VLAN子接口、Dot1q终结子接口")
    @ApiModelProperty(value = "封装方式")
    private String packageType;

    /** 主接口id */
    @Excel(name = "主接口id")
    @ApiModelProperty(value = "主接口id")
    private String mainPortId;

    /** 子接口id */
    @Excel(name = "子接口id")
    @ApiModelProperty(value = "子接口id")
    private String subPortId;

    /** 接口名称 */
    @Excel(name = "接口名称")
    @ApiModelProperty(value = "接口名称")
    private String portName;

    /** start svlan id */
    @Excel(name = "start svlan id")
    @ApiModelProperty(value = "start svlan id")
    private String startSvlanId;

    /** end svlan id */
    @Excel(name = "end svlan id")
    @ApiModelProperty(value = "end svlan id")
    private String endSvlanId;

    /** 条目状态（0未激活 1已激活） */
    @Excel(name = "条目状态", readConverterExp = "0=未激活,1=已激活")
    @ApiModelProperty(value = "条目状态")
    private String status;

    /** 删除标记（0正常 2删除） */
    private String delFlag;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setL2VpnId(String l2VpnId) 
    {
        this.l2VpnId = l2VpnId;
    }

    public String getL2VpnId() 
    {
        return l2VpnId;
    }
    public void setElementId(String elementId) 
    {
        this.elementId = elementId;
    }

    public String getElementId() 
    {
        return elementId;
    }
    public void setNodeRole(String nodeRole) 
    {
        this.nodeRole = nodeRole;
    }

    public String getNodeRole() 
    {
        return nodeRole;
    }
    public void setPackageType(String packageType) 
    {
        this.packageType = packageType;
    }

    public String getPackageType() 
    {
        return packageType;
    }
    public void setMainPortId(String mainPortId) 
    {
        this.mainPortId = mainPortId;
    }

    public String getMainPortId() 
    {
        return mainPortId;
    }
    public void setSubPortId(String subPortId) 
    {
        this.subPortId = subPortId;
    }

    public String getSubPortId() 
    {
        return subPortId;
    }
    public void setPortName(String portName) 
    {
        this.portName = portName;
    }

    public String getPortName() 
    {
        return portName;
    }
    public void setStartSvlanId(String startSvlanId) 
    {
        this.startSvlanId = startSvlanId;
    }

    public String getStartSvlanId() 
    {
        return startSvlanId;
    }
    public void setEndSvlanId(String endSvlanId) 
    {
        this.endSvlanId = endSvlanId;
    }

    public String getEndSvlanId() 
    {
        return endSvlanId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("l2VpnId", getL2VpnId())
            .append("elementId", getElementId())
            .append("nodeRole", getNodeRole())
            .append("packageType", getPackageType())
            .append("mainPortId", getMainPortId())
            .append("subPortId", getSubPortId())
            .append("portName", getPortName())
            .append("startSvlanId", getStartSvlanId())
            .append("endSvlanId", getEndSvlanId())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
